package org.idea.spring.ioc.repository;

import org.idea.spring.ioc.bean.Person;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.ObjectFactory;

import java.util.Collection;

/**
 * @Author idea
 * @Date created in 9:47 上午 2020/5/1
 */
public class PersonRepository {

    private Collection<Person> persons;

    private BeanFactory beanFactory;

    private ObjectFactory<Person> objectFactory;

    public ObjectFactory<Person> getObjectFactory() {
        return objectFactory;
    }

    public void setObjectFactory(ObjectFactory<Person> objectFactory) {
        this.objectFactory = objectFactory;
    }

    public BeanFactory getBeanFactory() {
        return beanFactory;
    }

    public void setBeanFactory(BeanFactory beanFactory) {
        this.beanFactory = beanFactory;
    }

    public Collection<Person> getPersons() {
        return persons;
    }

    public void setPersons(Collection<Person> persons) {
        this.persons = persons;
    }
}
